/**
 *  global section
 */

html, body {
    margin: 0;
    padding: 0;
    width: 60%;
    margin: 0 auto;
    font-family: sans-serif;
}

@media screen and (max-width: 640px) {

    html, body {
        width: 100%;
    }
}

/**
 *  header section
 */

header {
    height: 140px;
    background-color: #eef;
    margin: 0 0 20px;
    padding: 0 20px 0 20px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

h1, p {
    margin: 0 0 10px;
    padding: 10px 0 0 0;
}

h1::before {
    content: "<";
}

h1::after {
    content: ">";
}

#logout {
    display: none;
    float: right;
    font-size: 16px;
    color: #dd5862;
    font-family: Georgia;
}

#logout span {
    margin-right: 5px;
}

/**
 *  main section
 */

main {
    text-align: center;
}

/* for main.login */

#login {
    display: none;
}

/* for main.display */

#display {
    display: none;
}

#editor {
    display: none;
    margin: 10px 0 40px;
    padding: 0;
}

#editor div {
    margin: 5px 0;
    padding: 0;
}

label {
    display: inline-block;
    font-weight: bold;
    margin-right: 10px;
}

#editor label {
    width: 40px;
}

input {
    width: 300px;
    padding: 5px 0 5px 10px;
    margin-bottom: 10px;
    border: 1px solid #eef;
    border-radius: 10px;
}

button {
    padding: 5px;
    color: white;
    border: 0;
    background-color: #dd5862;
    border-radius: 10px;
}

/* for taglist */

ul {
    margin: 20px 0 0 10px;
    padding: 0;
    font-family: Georgia, Consolas, sans-serif;
    list-style: none;
}

#taglist li {
    display: inline-block;
    background-color: #eef;
    font-size: 16px;
    color: gray;
    margin: 5px 5px 5px 0;
    padding: 5px 0 5px 5px;
    border-radius: 5px;
}

/* for each link */

#linkers {
    line-height: 1;
    vertical-align: center;
}
li span {
    font-size: 24px;
    margin-right: 10px;
}

li {
    margin: 20px 0;
    position: relative;
}

li .link a {
    display: inline-block;
    width: 60%;
    margin-right: 10px;
    text-decoration: none;
    font-size: 20px;
    color: green;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

li a:hover {
    background-color: #eef;
    border-radius: 5px;
}

li .delete {
    font-family: Consolas;
    font-size: 16px;
    color: red;
    cursor: pointer;
    padding-left: 5px;
}

li .clicknum {
    display: inline-block;
    padding: 5px;
    font-size: 16px;
    min-width: 10px;
    height: 10px;
    text-align: center;
    line-height: 10px;
    vertical-align: center;
    border-radius: 10px;
    background-color: #dd5862;
}

.linkdescription {
    color: gray;
    font-style: italic;
}

li .tags a {
    text-decoration: none;
    display: inline-block;
    background-color: #eef;
    font-size: 16px;
    color: gray;
    margin: 5px 5px 5px 0;
    padding: 5px;
    border-radius: 5px;
}
